package com.qf.pwd;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * projectName: 2103--RBAC
 *
 * @author: MaTianWei
 * time: 2021/7/10 21:32
 * description:
 */

public class PasswordCreate {
    public static void main(String[] args) {
        String salt = "辽宁老铁儿";
        String password = "654321";
        //反复加密6次
        Md5Hash hash = new Md5Hash(password,salt,6);
        String pwd = hash.toString();
        System.out.println("加密后的密码是："+pwd);
    }
}
